From: Dan Winship Date: Fri, 29 Oct 2010 18:54:53 +0000 (-0400) Subject: pushModal: clear focus after pushing a new level X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9589 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f21403fd;p=gnome-shell.git pushModal: clear focus after pushing a new level This way the new modal level is independent of whatever may have been happening before. Fixes a problem with status menus becoming active again from inside the app switcher, etc. --- diff --git a/js/ui/main.js b/js/ui/main.js index 8e46209e6..5177df6ec 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -390,6 +390,7 @@ function pushModal(actor) { } modalActorFocusStack.push([actor, curFocus]); + global.stage.set_key_focus(null); return true; }